<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ page import="org.tobuy.vo.*" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    
    <title>My JSP 'showAuctionDetail.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <h3>Auction Detail</h3>
   <%
   		Auction auction = (Auction)request.getAttribute("auction");
   		Item item = (Item)request.getAttribute("item");
    %>
    <table border=1>
    	<tr>
    		<td>Type</td>
    		<td><%=item.getType() %></td>
    	</tr>
    	<tr>
    		<td>Name</td>
    		<td><%=item.getItem_name() %></td>
    	</tr>
    	<tr>
    		<td>Current offer</td>
    		<td><%=auction.getBuyer_offer() %></td>
    	</tr>
    	<tr>
    		<td>Offer from</td>
    		<td><%=auction.getBuyer_id() %></td>
    	</tr>
    	<tr>
    		<td>Seller</td>
    		<td><%=auction.getSeller_id() %></td>
    	</tr>
    	<tr>
    		<td>Exp. Date</td>
    		<td><%=auction.getExp_time() %></td>
    	</tr>
    	<tr>
    		<td>Your offer</td>
    		<td>
    			<form action="OfferPrice" method="post">
    					<input type="text" name="newoffer">
    					<input type="hidden" name="item_id" value="<%=item.getItem_id() %>">
    					<input type="submit" value="Submit!">
    			</form>
    		</td>
    	</tr>
    </table>
  </body>
</html>
